home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1997 March
/
CHIP Mart 1997.iso
/
SurfCam
/
SURFCAM.Z
/
MAH-G17.M3
< prev
next >
Wrap
Text File
|
1996-04-01
|
5KB
|
157 lines
name Maho XY Plane (G17)
% 00
! 00
N >9
G >2
b ->3.>4 B
B ->3.>4
X ->3.>4
x ->3.>4 X
Y ->3.>4
y ->3.>4 Y
Z ->3.>4
z ->3.>4 Z Mult -1
I ->3.>4
i ->3.>4 I
J ->3.>4
K ->3.>4
k ->3.>4 K
F >3.1
T >2
M >2
S >4
W 00
ModalLetters X Y Z F B # List of letters that are modal
ModalGs 0 1 2 3 81 83 84 # List of g codes that are modal
Sequence#s N 1 1 1 # Char, freq, incr & start
First#? N # Y or N 'Output 1st sequence no.
Last#? N # Y or N 'Output last sequence no.
HCode X # X or X U 'Horizontal char.
VCode Y # Y or Y V 'Vertical char.
Dcode Z # Depth char.
FeedCode F # Feed rate char.
Comment ( ) # Begin End comment char.
Spindle 3 4 5 # Cw, ccw & stop m codes
Coolant 8 9 7 # On, Off & Mist m codes
DComp 41 42 40 # Left, Right & Cancel m codes
LComp 43 49 # On & Off codes
Feed G1 # Linear move
Rapid G0 # Rapid positioning word
Cw G2 # Circular move clockwise
Ccw G3 # Circular move counter clockwise
Inc/Abs G 91 90 # Inc & Abs char. & values
CtrCode I J # I J or R or I J K L
Helical? N
Spaces? N # Y or N 'Spaces between words
Incremental? N # Y or N 'Inc or abs output
CtrIncremental? N # Y or N 'Inc or abs I & J
ByQuadrants? N # Y or N 'Break arcs at quadrants
UppercaseComments? Y # Y or N 'Require uppercase comments
Drill 2 # Drilling canned/manual cycle
G81 z[Depth] b[Rplane] F[Frate] y2
G79 X[H] Z[PointD] Y[V]
G79 X[H] Z[PointD] Y[V]
end
Peck 2 # Pecking canned/manual cycle
G83 z[Depth] b[RPlane] F[Frate] y2 i[VBite] k[VBite]
G79 X[H] Z[PointD] Y[V]
G79 X[H] Z[PointD] Y[V]
end
Tap 2 # Tapping canned/manual cycle
G84 z[Depth] b[RPlane] F[Frate] y2
G79 X[H] Z[PointD] Y[v]
G79 X[H] Z[PointD] Y[v]
end
Ream 2 # Reaming canned/manual cycle
G85 z[Depth] b[RPlane] F[Frate] y2
G79 X[H] Z[PointD] Y[V]
G79 X[H] Z[PointD] Y[V]
end
Bore 2 # Boring canned/manual cycle
G86 z[Depth] b[Rplane] F[Frate] y2
G79 X[H] Z[PointD] Y[V]
G79 X[H] Z[PointD] Y[V]
end
Back # Back boring canned/manual cycle
end cancel
Cancel # Cancel a canned/manual cycle
G80
end
Index Z # Index the rotary table
G0 Z[Val1]
G0 B[Rotangle]
end
# Unwind the rotary table
G0 Y100
G0 B0
G0 B[LastRotAng]
G0 Y[LastD]
end
StartCode # Start of the program
Ask [Val7] " Enter Retract value in Z for toolchange : " "100"
Ask [Val6] " Enter M-Function for toolchange : " "6"
Ask [Val8] " Enter Offset number : " "54"
Ask [Val1] " Enter Retract value Z bef. rotarypos. : " "100"
%0
!0 N[Program#]
End
1stToolChange # First tool change
G17 T[Tool] M[Val6]
G51
G53
G[Val8]
G90
G0 X[H] Y[V] Z[D] B[Rotangle] S[Speed] F[FRate] M13
End
Infeed # Enable cutter comp
G1 Z[D] F[Plunge]
G43 X[H] Y[V] F[FRate]
G[Side]
end
Outfeed # Disable cutter comp
G40
G1 X[H] Y[V]
end
ToolChange # Secondary tool changes
G0 Z[Val7]
T[Tool] M[Val6]
G0 X[H] Y[V] Z[D] S[Speed] F[FRate] M13
End
EndCode # End of the program
G0 Z[Val7]
G53
M30
W0
End
Replace "%" with "%PM"